package com.dbh.alg.datastructure.queue;

import cn.hutool.core.lang.tree.Tree;

/**
 * 二叉树
 * @author 董帮辉
 * @date 2025/5/17
 **/
public class TreeNode {

    public int val;

    public TreeNode left;

    public TreeNode right;

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(TreeNode left, int val, TreeNode right) {
        this.left = left;
        this.val = val;
        this.right = right;
    }

    @Override
    public String toString() {
        return String.valueOf(this.val);
    }
}
